<?php

/**
 * 配置文件
 *
 * @author 耐小心<i@naixiaoxin.com>
 * @copyright 2017-2018 耐小心
 */

use EasyWeChat\Factory;
use think\facade\Env;
$pwd = $_SERVER['PWD'] ?? '';
return [
    'app_id' => 'wxde21363f89df5531',
    'secret' => '155ea864ef116cad2ff7917e6edc09ae',
    'tokenExpireHours' => 24 * 3600 * 5,
    'response_type' => 'array',
    'mch_id'             => '1627785124',
    'key'                => '110087a6d5231c5c11d71c18a88e76ee',   // API v2 密钥 (注意: 是v2密钥 是v2密钥 是v2密钥)
    // 如需使用敏感接口（如退款、发送红包等）需要配置 API 证书路径(登录商户平台下载 API 证书)
    'cert_path'          => $pwd. '/public/config/payment_cert/wechatpay/apiclient_cert.pem', // XXX: 绝对路径！！！！
    'key_path'           => $pwd. '/public/config/payment_cert/wechatpay/apiclient_key.pem', // XXX: 绝对路径！！！！
];
